/**
 * file:  JobProcessingClient.java
 */

package pcsd.worker;

import java.rmi.Remote;
import java.rmi.RemoteException;

import pcsd.Result;
import pcsd.Task;

/**
 * A simple job processing worker interface.
 * 
 * This worker receives a task to process and returns the result of processing
 * as a Result object.
 * 
 * @author Tim van Deurzen
 */
public interface JobProcessingWorker extends Remote {

	/**
	 * Processes a task.
	 * 
	 * @param task
	 *            - task to be processed.
	 */
	public Result executeTask(Task task) throws RemoteException;
}
